//
//  NSArray+Lc.h
//  18Birdies
//
//  Created by Lc on 15/6/29.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSArray (Lc)

- (BOOL)containsAllObjects:(NSArray*)array;

- (NSSet*)toSet;

#pragma mark - Utils

- (NSNumber*)minValue;
- (NSNumber*)maxValue;
/**
 * -1 means not found
 */
- (int)indexOfMinNumber;
- (int)indexOfMinNumberWithUnique:(BOOL)unique;
/**
 * -1 means not found
 */
- (int)indexOfMaxNumber;
- (int)indexOfMaxNumberWithUnique:(BOOL)unique;

@end
